#include <memory>

#include "TcpServer.hpp"
#include "CommandExecute.hpp"

int main()
{
    ENABLE_CONSOLE_LOG();

    Command cmd;
    std::shared_ptr<TcpServer> tsvr = std::make_shared<TcpServer>([&cmd](std::string cmdstr){
        return cmd.Execute(cmdstr);
    });
    
    tsvr->InitServer();
    tsvr->Start();

    return 0;
}